<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page import="db.formulation.Formulation" %>
<%@ page import="db.fortifier.Fortifier" %>
<%@ page import="db.nutriment.Nutriment" %>
<%@ page import="db.standard.Standard" %>
<%@ page import="java.util.List" %>	

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<meta http-equiv="Content-Script-Type" content="text/css" />

<%!String v = "abcde";  %>

<title>searchResult</title>
<link href="/formulation/css/test.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript">
function clickme(num)
{
	alert("a");
	//var form = document.getElementById("page");
	//form.page.value = num;
	//form.submit();
}
<link href="../css/test.css" rel="stylesheet" type="text/css" media="screen" />

</script>

<style>.jsb{display:none}.nojsb{display:block}.nojsv{visibility:visible}</style>


<script>
google.y={};
google.x=function(e,g){google.y[e.id]=[e,g];
return false};
if(!window.google)
window.google={};
window.google.crm={};
window.google.cri=0;
window.clk=function(e,f,g,k,l,b,m){
if(document.images)
{
var a=encodeURIComponent||escape,c=new Image,h=window.google.cri++;
window.google.crm[h]=c;
c.onerror=(c.onload=(c.onabort=function(){delete window.google.crm[h]}));
if(b&&b.substring(0,6)!="&sig2=")b="&sig2="+b;
c.src=["/url?sa=T","\x26source\x3dweb","&cd=",a(l),google.j&&google.j.pf?"&sqi=2":"","&ved=",a(m),e?"&url="+
a(e.replace(/#.*/,"")).replace(/\+/g,"%2B"):"","&ei=","bjcGTfbCH4fqrQfWvICRDw",b].join("")}return true
};
window.gbar={qs:function(){},tg:function(e){var o={id:'gbar'};
for(i in e)
o[i]=e[i];
google.x(o,function(){gbar.tg(o)})
}
};
</script>

</head>

<body id=gsr>

 <form action="" method="post" id="page">
 <input type=hidden name="page"/>
 </form>

<div id = gx_body>
<div id="search">
 <div>
  <table border=0 cellpadding=0 cellspacing=0 style="border-bottom:1px solid #e7e7e7;padding:8px 0 0;position:relative;z-index:2">
   <tr>
    <td class="lst-td" width=100%>
    <div style=position:relative;zoom:1>
    <input class=lst type=text name=q maxlength=2048 value="Ca" title="结果" />
    <input class=lst type=text name=q maxlength=2048 value="" title="结果" />
    <span id=tsf-oq style="display:none">aaa</span>
    </div> 
    </td>
    <td>
    <div class=ds><div class=lsbb>
    <input type=submit name="btnG" class=lsb value="搜索"/>
    </div></div>
    </td>
    <td><div style="position:relative;height:30px;z-index:2"></div></td>
   </tr>
   </table>
  </div>
</div>


<div id ="results"> 
 <div id=gx_text>
   
   <% 
      @SuppressWarnings("unchecked")
      List<Formulation> showList = (List<Formulation>)request.getAttribute("formulations");
      
      for(int i=0; i<showList.size(); i++)
      {
    	  out.print("<h3 class='r'><a href='http://g.cn/'><em>"+showList.get(i).getName()+"</em></a> <br></h3>");
          out.print("<div><a class='gx_s'>There is no discription.</a></div>");       
      }
    %>
   
   
 </div> 
</div>

<div id ="pages">
<div id=navcnt>
 <table id=nav >
 <tr valign=top><td class=b>
 <span class="csb" style="text-align:left;background-position:-24px 0;width:28px"></span></td>
 
 
 <%
	int nowPage = 3;
 	int allPage = 5;
 
    for (int i=0; i<allPage; i++)
	{
    	if(i==nowPage-1){
    		out.print("<td class=cur style='color:black'><span class='csb' style='background-position:-53px 0;width:20px'></span>"+(i+1)+"</td>");
    	}else{
     		out.print("<td><a href= class=fl onclick=\"clickme()\"><span class='csb ch' style='background-position:-74px 0;width:20px'></span>"+(i+1)+"</a></td>");
    	}
	}
 %>

 
  <td class=b>
  <a href="" class=pn id=pnnext style="text-align:left;text-decoration:none">
  <span class="csb ch" style="background-position:-96px 0;width:71px"></span>
  <%
  	if(allPage != 1 && allPage != nowPage)
  	{
  		out.print(" <span style='display:block;margin-left:20px;text-decoration:underline'> <b>下一页</b></span>");
  	}
  %>
  
 </a>
 </td></tr>
 </table>
 </div>
</div>
</div>

</body>
</html>

    
	